package com.ruoyi.circle.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.tag.domain.TagsInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 圈子基础信息对象 circle_basic_info
 * 
 * @author 区嘉盛
 * @date 2025-06-09
 */
@Schema(description = "圈子基础信息对象")
public class CircleBasicInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @Schema(title = "自增ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 圈子编码 */
    @Schema(title = "圈子编码")
    @Excel(name = "圈子编码")
    private String circleCode;

    /** 圈子名称 */
    @Schema(title = "圈子名称")
    @Excel(name = "圈子名称")
    private String circleName;

    /** 圈子描述 */
    @Schema(title = "圈子描述")
    @Excel(name = "圈子描述")
    private String circleDescription;

    /** 圈子头像URL */
    @Schema(title = "圈子头像URL")
    private String circleAvatar;

    /** 圈主用户呢称 */
    @Schema(title = "圈主用户呢称")
    @Excel(name = "圈主用户呢称")
    private String ownerUser;

    /** 等级体系名称 */
    @Schema(title = "等级体系名称")
    @Excel(name = "等级体系名称")
    private String systemName;

    /** 标签ID列表 */
    @Schema(title = "标签ID列表")
    @Excel(name = "标签ID列表")
    @TableField(exist = false)
    private Long[] tagIds;

    /** 成员数量统计 */
    @Schema(title = "成员数量统计")
    @Excel(name = "成员数量统计")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long memberCount;

    /** 帖子数量统计 */
    @Schema(title = "帖子数量统计")
    @Excel(name = "帖子数量统计")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long postCount;

    /** 热度分数 */
    @Schema(title = "热度分数")
    @Excel(name = "热度分数")
    private BigDecimal heatScore;

    /** 审批状态 */
    @Schema(title = "审批状态")
    @Excel(name = "审批状态")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long approvalStatus;

    /** 标签列表 */
    @Schema(title = "标签列表")
    @TableField(exist = false)
    private List<TagsInfo> tagList;

    /** 创建人 */
    @Schema(title = "创建人")
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    private LocalDate createdTime;

    /** 更新人 */
    @Schema(title = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 0-未删除 1-已删除 */
    @Schema(title = "删除标志 0-未删除 1-已删除")
    private Long deletedFlag;

    /** 创建人id */
    @Schema(title = "创建人id")
    @Excel(name = "创建人id")
    private Long createUserId;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCircleCode(String circleCode) 
    {
        this.circleCode = circleCode;
    }

    public String getCircleCode() 
    {
        return circleCode;
    }

    public void setCircleName(String circleName) 
    {
        this.circleName = circleName;
    }

    public String getCircleName() 
    {
        return circleName;
    }

    public void setCircleDescription(String circleDescription) 
    {
        this.circleDescription = circleDescription;
    }

    public String getCircleDescription() 
    {
        return circleDescription;
    }

    public void setCircleAvatar(String circleAvatar) 
    {
        this.circleAvatar = circleAvatar;
    }

    public String getCircleAvatar() 
    {
        return circleAvatar;
    }

    public void setOwnerUser(String ownerUser) 
    {
        this.ownerUser = ownerUser;
    }

    public String getOwnerUser() 
    {
        return ownerUser;
    }

    public void setSystemName(String systemName) {this.systemName = systemName;}

    public String getSystemName() {return systemName;}

    public void setTagIds(Long[] tagIds) {this.tagIds = tagIds;}

    public Long[] getTagIds() {return tagIds;}

    public void setMemberCount(Long memberCount) 
    {
        this.memberCount = memberCount;
    }

    public Long getMemberCount() 
    {
        return memberCount;
    }

    public void setPostCount(Long postCount) 
    {
        this.postCount = postCount;
    }

    public Long getPostCount() 
    {
        return postCount;
    }

    public void setHeatScore(BigDecimal heatScore) 
    {
        this.heatScore = heatScore;
    }

    public BigDecimal getHeatScore() 
    {
        return heatScore;
    }

    public void setApprovalStatus(Long approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public Long getApprovalStatus() 
    {
        return approvalStatus;
    }

    public void setTagList(List<TagsInfo> tagList) {this.tagList = tagList;}

    public List<TagsInfo> getTagList() {return tagList;}

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }


    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setDeletedFlag(Long deletedFlag) 
    {
        this.deletedFlag = deletedFlag;
    }

    public Long getDeletedFlag() 
    {
        return deletedFlag;
    }

    public void setCreateUserId(Long createUserId)
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId()
    {
        return createUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("circleCode", getCircleCode())
            .append("circleName", getCircleName())
            .append("circleDescription", getCircleDescription())
            .append("circleAvatar", getCircleAvatar())
            .append("ownerUser", getOwnerUser())
            .append("memberCount", getMemberCount())
            .append("postCount", getPostCount())
            .append("heatScore", getHeatScore())
            .append("approvalStatus", getApprovalStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deletedFlag", getDeletedFlag())
            .toString();
    }
}
